package com.miniapp.common.gen.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PaicFtiInsurantExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PaicFtiInsurantExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdIsNull() {
            addCriterion("paic_fti_policy_id is null");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdIsNotNull() {
            addCriterion("paic_fti_policy_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdEqualTo(Integer value) {
            addCriterion("paic_fti_policy_id =", value, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdNotEqualTo(Integer value) {
            addCriterion("paic_fti_policy_id <>", value, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdGreaterThan(Integer value) {
            addCriterion("paic_fti_policy_id >", value, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("paic_fti_policy_id >=", value, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdLessThan(Integer value) {
            addCriterion("paic_fti_policy_id <", value, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdLessThanOrEqualTo(Integer value) {
            addCriterion("paic_fti_policy_id <=", value, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdIn(List<Integer> values) {
            addCriterion("paic_fti_policy_id in", values, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdNotIn(List<Integer> values) {
            addCriterion("paic_fti_policy_id not in", values, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdBetween(Integer value1, Integer value2) {
            addCriterion("paic_fti_policy_id between", value1, value2, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andPaicFtiPolicyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("paic_fti_policy_id not between", value1, value2, "paicFtiPolicyId");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeIsNull() {
            addCriterion("customer_type is null");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeIsNotNull() {
            addCriterion("customer_type is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeEqualTo(String value) {
            addCriterion("customer_type =", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeNotEqualTo(String value) {
            addCriterion("customer_type <>", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeGreaterThan(String value) {
            addCriterion("customer_type >", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeGreaterThanOrEqualTo(String value) {
            addCriterion("customer_type >=", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeLessThan(String value) {
            addCriterion("customer_type <", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeLessThanOrEqualTo(String value) {
            addCriterion("customer_type <=", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeLike(String value) {
            addCriterion("customer_type like", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeNotLike(String value) {
            addCriterion("customer_type not like", value, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeIn(List<String> values) {
            addCriterion("customer_type in", values, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeNotIn(List<String> values) {
            addCriterion("customer_type not in", values, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeBetween(String value1, String value2) {
            addCriterion("customer_type between", value1, value2, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerTypeNotBetween(String value1, String value2) {
            addCriterion("customer_type not between", value1, value2, "customerType");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIsNull() {
            addCriterion("customer_name is null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIsNotNull() {
            addCriterion("customer_name is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameEqualTo(String value) {
            addCriterion("customer_name =", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotEqualTo(String value) {
            addCriterion("customer_name <>", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThan(String value) {
            addCriterion("customer_name >", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThanOrEqualTo(String value) {
            addCriterion("customer_name >=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThan(String value) {
            addCriterion("customer_name <", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThanOrEqualTo(String value) {
            addCriterion("customer_name <=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLike(String value) {
            addCriterion("customer_name like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotLike(String value) {
            addCriterion("customer_name not like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIn(List<String> values) {
            addCriterion("customer_name in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotIn(List<String> values) {
            addCriterion("customer_name not in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameBetween(String value1, String value2) {
            addCriterion("customer_name between", value1, value2, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotBetween(String value1, String value2) {
            addCriterion("customer_name not between", value1, value2, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumIsNull() {
            addCriterion("customer_id_num is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumIsNotNull() {
            addCriterion("customer_id_num is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumEqualTo(String value) {
            addCriterion("customer_id_num =", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumNotEqualTo(String value) {
            addCriterion("customer_id_num <>", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumGreaterThan(String value) {
            addCriterion("customer_id_num >", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumGreaterThanOrEqualTo(String value) {
            addCriterion("customer_id_num >=", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumLessThan(String value) {
            addCriterion("customer_id_num <", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumLessThanOrEqualTo(String value) {
            addCriterion("customer_id_num <=", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumLike(String value) {
            addCriterion("customer_id_num like", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumNotLike(String value) {
            addCriterion("customer_id_num not like", value, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumIn(List<String> values) {
            addCriterion("customer_id_num in", values, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumNotIn(List<String> values) {
            addCriterion("customer_id_num not in", values, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumBetween(String value1, String value2) {
            addCriterion("customer_id_num between", value1, value2, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNumNotBetween(String value1, String value2) {
            addCriterion("customer_id_num not between", value1, value2, "customerIdNum");
            return (Criteria) this;
        }

        public Criteria andContactPersonIsNull() {
            addCriterion("contact_person is null");
            return (Criteria) this;
        }

        public Criteria andContactPersonIsNotNull() {
            addCriterion("contact_person is not null");
            return (Criteria) this;
        }

        public Criteria andContactPersonEqualTo(String value) {
            addCriterion("contact_person =", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotEqualTo(String value) {
            addCriterion("contact_person <>", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonGreaterThan(String value) {
            addCriterion("contact_person >", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonGreaterThanOrEqualTo(String value) {
            addCriterion("contact_person >=", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonLessThan(String value) {
            addCriterion("contact_person <", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonLessThanOrEqualTo(String value) {
            addCriterion("contact_person <=", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonLike(String value) {
            addCriterion("contact_person like", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotLike(String value) {
            addCriterion("contact_person not like", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonIn(List<String> values) {
            addCriterion("contact_person in", values, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotIn(List<String> values) {
            addCriterion("contact_person not in", values, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonBetween(String value1, String value2) {
            addCriterion("contact_person between", value1, value2, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotBetween(String value1, String value2) {
            addCriterion("contact_person not between", value1, value2, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPonheIsNull() {
            addCriterion("contact_ponhe is null");
            return (Criteria) this;
        }

        public Criteria andContactPonheIsNotNull() {
            addCriterion("contact_ponhe is not null");
            return (Criteria) this;
        }

        public Criteria andContactPonheEqualTo(String value) {
            addCriterion("contact_ponhe =", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheNotEqualTo(String value) {
            addCriterion("contact_ponhe <>", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheGreaterThan(String value) {
            addCriterion("contact_ponhe >", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheGreaterThanOrEqualTo(String value) {
            addCriterion("contact_ponhe >=", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheLessThan(String value) {
            addCriterion("contact_ponhe <", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheLessThanOrEqualTo(String value) {
            addCriterion("contact_ponhe <=", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheLike(String value) {
            addCriterion("contact_ponhe like", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheNotLike(String value) {
            addCriterion("contact_ponhe not like", value, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheIn(List<String> values) {
            addCriterion("contact_ponhe in", values, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheNotIn(List<String> values) {
            addCriterion("contact_ponhe not in", values, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheBetween(String value1, String value2) {
            addCriterion("contact_ponhe between", value1, value2, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactPonheNotBetween(String value1, String value2) {
            addCriterion("contact_ponhe not between", value1, value2, "contactPonhe");
            return (Criteria) this;
        }

        public Criteria andContactAddressIsNull() {
            addCriterion("contact_address is null");
            return (Criteria) this;
        }

        public Criteria andContactAddressIsNotNull() {
            addCriterion("contact_address is not null");
            return (Criteria) this;
        }

        public Criteria andContactAddressEqualTo(String value) {
            addCriterion("contact_address =", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressNotEqualTo(String value) {
            addCriterion("contact_address <>", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressGreaterThan(String value) {
            addCriterion("contact_address >", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressGreaterThanOrEqualTo(String value) {
            addCriterion("contact_address >=", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressLessThan(String value) {
            addCriterion("contact_address <", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressLessThanOrEqualTo(String value) {
            addCriterion("contact_address <=", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressLike(String value) {
            addCriterion("contact_address like", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressNotLike(String value) {
            addCriterion("contact_address not like", value, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressIn(List<String> values) {
            addCriterion("contact_address in", values, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressNotIn(List<String> values) {
            addCriterion("contact_address not in", values, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressBetween(String value1, String value2) {
            addCriterion("contact_address between", value1, value2, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andContactAddressNotBetween(String value1, String value2) {
            addCriterion("contact_address not between", value1, value2, "contactAddress");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}